package org.jeecg.modules.door.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 门锁管理
 * @Author: jeecg-boot
 * @Date:   2024-02-26
 * @Version: V1.0
 */
@Data
@TableName("lwgy_door_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_door_info对象", description="门锁管理")
public class LwgyDoorInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**锁号*/
	@Excel(name = "锁号", width = 15)
    @ApiModelProperty(value = "锁号")
    private String lockNumber;
	/**锁状态（D5）*/
	@Excel(name = "锁状态（D5）", width = 15, dicCode = "lockState")
	@Dict(dicCode = "lockState")
    @ApiModelProperty(value = "锁状态（D5）")
    private String lockStatus;
	/**开锁方式（D6）*/
	@Excel(name = "开锁方式（D6）", width = 15, dicCode = "unlockingMethod")
	@Dict(dicCode = "unlockingMethod")
    @ApiModelProperty(value = "开锁方式（D6）")
    private String unlockingMethod;
	/**关门状态（D7）*/
	@Excel(name = "关门状态（D7）", width = 15, dicCode = "closingStatus")
	@Dict(dicCode = "closingStatus")
    @ApiModelProperty(value = "关门状态（D7）")
    private String closingStatus;
	/**电池电压（D8）*/
	@Excel(name = "电池电压（D8）", width = 15)
    @ApiModelProperty(value = "电池电压（D8）")
    private String voltage;
	/**最后开锁号(9~13))*/
	@Excel(name = "最后开锁号(9~13))", width = 15)
    @ApiModelProperty(value = "最后开锁号(9~13))")
    private String finalUnlock;
	/**温度（D15）*/
	@Excel(name = "温度（D15）", width = 15)
    @ApiModelProperty(value = "温度（D15）")
    private String temperature;

	/**锁次数(D16D17)*/
	@Excel(name = "开关锁次数(D16D17)", width = 15)
    @ApiModelProperty(value = "开关锁次数(D16D17)")
    private String times;
    /**所属网关*/
    @Excel(name = "所属网关", width = 15,dictTable = "lwgy_joint_gateway", dicText = "gateway_name", dicCode = "id")
    @Dict(dictTable = "lwgy_joint_gateway", dicText = "gateway_name", dicCode = "id")
    @ApiModelProperty(value = "所属网关")
    private String gatewayId;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "del_flag")
	@Dict(dicCode = "del_flag")
    @ApiModelProperty(value = "状态")
    private String status;
}
